package com.wurao.service.impl;

import java.util.List;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wurao.dao.LinkDao;
import com.wurao.entity.Link;
import com.wurao.service.LinkService;

/**
 * 友情链接接口
 * @author xxxx
 *
 */
@Service("linkService")
public class LinkServiceImpl implements LinkService {
	@Resource
	private LinkDao linkDao;
	
	
	public LinkDao getLinkDao() {
		return linkDao;
	}


	public void setLinkDao(LinkDao linkDao) {
		this.linkDao = linkDao;
	}


	public List<Link> listLink(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return linkDao.listLink(map);
	}


	@Override
	public Long getTotal(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return linkDao.getTotal(map);
	}


	@Override
	public Integer add(Link link) {
		// TODO Auto-generated method stub
		return linkDao.add(link);
	}


	@Override
	public Integer update(Link link) {
		// TODO Auto-generated method stub
		return linkDao.update(link);
	}


	@Override
	public Integer delete(Integer id) {
		// TODO Auto-generated method stub
		return linkDao.delete(id);
	}
	
	

}
